*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: teal;
}
.container {
    display: flex;
    width: 90vw;
}
.panel {
    height: 80vh;
    border-radius: 50px;
    margin: 0 10px ;
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center;
    flex: 1;
    transition:all 0.3s linear;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.panel.active {
    flex: 8;
}
.panel h3 {
    font-size: 24px;
    color: white;
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in 0.2s;
}
.panel.active h3 {
    opacity: 1;
}

@media (max-width:600px) {
    .container {
        display: flex;
        width: 100vw;
    }
    .panel:nth-last-child(1){
        display: none;
    }
    .panel:nth-last-child(2){
        display: none;
    }
    
}